package com.ifast.hnzk.service.impl;

import org.springframework.stereotype.Service;

import com.ifast.hnzk.dao.NewsDao;
import com.ifast.hnzk.domain.NewsDO;
import com.ifast.hnzk.service.NewsService;
import com.ifast.common.base.CoreServiceImpl;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2019-06-10 10:56:21 | wch</small>
 */
@Service
public class NewsServiceImpl extends CoreServiceImpl<NewsDao, NewsDO> implements NewsService {


    @Override
    public NewsDO getNewsPrev(Long newsId, Integer type) {
        return baseMapper.getNewsPrev(newsId,type);
    }

    @Override
    public NewsDO getNewsNext(Long newsId, Integer type) {
        return baseMapper.getNewsNext(newsId,type);
    }
}
